package com.qf.day07.poly;

import com.qf.day06.Animal;
import com.qf.day06.Dog;

public class instanceOfDemo {
    public static void main(String[] args) {
        Dog dog = new Dog();

        boolean b = dog instanceof Dog;
        boolean b1= dog instanceof Animal;

        System.out.println(b);
        System.out.println(b1);
    }
}
